package com.sun.kamun.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sun.kamun.entity.Admin;
import com.sun.kamun.mapper.AdminMapper;
import com.sun.kamun.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl extends ServiceImpl<AdminMapper, Admin> implements AdminService {

    @Autowired
    private AdminMapper adminMapper;

    @Override
    public Admin login(String admin_name, String admin_password) {
        return adminMapper.selectByLogin(admin_name, admin_password);
    }

    @Override
    public Admin selectAdminInfo(String admin_name) {
        return adminMapper.selectAdminInfo(admin_name);
    }


}
